package dex.micros_gdc

import java.util.Date;

class Overtime {

	String teamMember
	Date otDate
	int otHour
	String comments
	String closedFlag

	static constraints = {
		teamMember(blank:false, nullable: false)
		otDate(blank:false, nullable:false)
		otHour(blank:false, nullable:false)
		comments(nullable:true)
		closedFlag(blank:false, nullable:false, inList: ["N", "Y"])
	}

	static mapping = {
		table 'mgtm_overtime'

		id generator: 'increment'

		teamMember(column: 'team_member')
		otDate(column:'ot_date', type: 'date')
		otHour(column:'ot_hour', type: 'int')
		comments(column: 'comments')
		closedFlag(column:'closed_flag')

		version true
	}
}
